﻿// Original author contact info: Owen Emlen (owene_1998@yahoo.com)
// Note: other individuals may also have contributed to this code
// Project hosted on CodePlex.com as of 1/10/2009 at http://www.codeplex.com/EmlenMud
using System;
using BrainTechLLC.ThreadSafeObjects;

namespace BrainTechLLC
{
	[Serializable, AttributeUsage(AttributeTargets.Method)]
	public class RetryAttribute : Attribute, IReadableAttribute
	{
		public int RetryTimes { get; set; }
		public int SleepBetweenRetryMS { get; set; }
		public object Value { get { return RetryTimes; } }
		public RetryAttribute(int retryTimes, int sleepBetweenRetryMS) { RetryTimes = retryTimes; SleepBetweenRetryMS = sleepBetweenRetryMS; }
	}
}

